/**
 * 处理排序参数
 * @param param0 table 排序原始参数
 * @returns
 */
export function getSortValue({
  order,
  prop
}: {
  prop: string
  order: string | null
}) {
  if (order === 'descending') order = 'desc'
  if (order === 'ascending') order = 'asc'
  const sort = order ? prop : null
  return { sort, order: order as Order }
}
